#include<stdio.h>

void main()
{
	int num;
	
	printf("input a postive integer\n");
	scanf("%d", &num);

	while(num > 0)
	{
		printf("%d", num % 10);
		num = num / 10;
	}
	printf("\n");
}
